const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  // 简化token 获取
  token: state => state.user.token,
  // 简化用户信息 获取
  userInfo: state => state.user.userInfo,
  // 是否登录的标记 返回bool
  isLogin: state => !!state.user.userInfo.userId,
  // 公司id
  companyId: state => state.user.userInfo.companyId
}
export default getters
